//
//  QGRegistRootViewController.m
//  QuanGou
//
//  Created by qqqq on 15/11/21.
//  Copyright © 2015年 DongYongFei. All rights reserved.
//

#import "QGRegistRootViewController.h"
#import "QGRegistViewController.h"
#import "QGRegistByEmailViewController.h"

@interface QGRegistRootViewController ()

@end

@implementation QGRegistRootViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    
//    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:[[NSBundle mainBundle] pathForResource:@"header_back_icon.png" ofType:nil]] style:(UIBarButtonItemStylePlain) target:self action:@selector(backButton:)];

}
//- (void)backButton:(UINavigationBar *)bar {
//    [self dismissViewControllerAnimated:YES completion:nil];
//}
- (IBAction)phoneRegistButton:(id)sender {
    QGRegistViewController *registByPhoneVC = [[QGRegistViewController alloc] initWithNibName:@"QGRegistViewController" bundle:[NSBundle mainBundle]];
    [self.navigationController pushViewController:registByPhoneVC animated:YES];
}
- (IBAction)emailRegistButton:(id)sender {
    QGRegistByEmailViewController *registByEmailVC = [[QGRegistByEmailViewController alloc] initWithNibName:@"QGRegistByEmailViewController" bundle:[NSBundle mainBundle]];
    [self.navigationController pushViewController:registByEmailVC animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
